Repository navigation
docs(WO17): step 4b landed — the TS parser is generated from the .parg grammar - #434
Merged
Merged
Conversation
…g (434/434 vs hand parser); owner-flagged grammar findings recorded interscript-ts PR #128 merged: the ISC parser is generated from the canonical ruby .parg grammar (vendored verbatim, sha256-pinned with a no-drift test; parg-reader + table-driven PEG interpreter with parsanol's exact flatten semantics + an actions table). Capture trees vs ruby 434/434 byte-identical; documents vs the replaced hand parser 434/434 identical; the cross-grammar harness scores the generated parser at exactly the hand parser's 411/434 (same files, same kinds). Owner-flagged: three dormant grammar extensions (one newly-discovered cross-runtime when-position divergence), the U-escape mis-handling shared by hand-ts and py (six corpus maps). WO17 steps 1-4 complete; py generated-parser switch is the follow-up.
ronaldtse
force-pushed
the
wo17-4b-landed
branch
from
November 11, 2026 17:21
bf23e8e to
4484833
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The single-sourcing milestone landed: interscript-ts #128 merged — the ISC parser is generated from the canonical ruby
.parggrammar (vendored verbatim, sha256-pinned with a no-drift test; parg-reader + table-driven PEG interpreter with parsanol's exact flatten semantics + an actions table mirroring the hand parser). The publicparseIscAPI is unchanged.Evidence: capture trees vs ruby 434/434 byte-identical; documents vs the replaced hand parser 434/434 identical; the cross-grammar harness scores the generated parser at exactly the hand parser's 411/434 (same 23 files, same divergence kinds — the gap is py-normalizer-by-design); ts suite 364/0 with the conformance matrix green in CI.
Owner-flagged: three dormant grammar extensions (one a newly-discovered cross-runtime
when-position divergence), the\UXXXXescape mis-handling shared by hand-ts and py (six corpus maps), interpreter performance ~18 s/corpus. WO17 steps 1-4 complete; the py generated-parser switch is the follow-up; owner-held set unchanged.(Replaces the earlier body, whose backticked segments were eaten by shell command substitution — the lesson already in the global rules, re-learned the hard way.)